import random
from osgeo import ogr

multiPoint = ogr.Geometry(ogr.wkbMultiPoint)
for i in range(10):
    longitude = random.random() * 360 -180
    latitude = random.random() * 180 -90
    point = ogr.Geometry(ogr.wkbPoint)
    point.AddPoint(longitude,latitude)
    multiPoint.AddGeometry(point)

print(multiPoint.ExportToWkt())